let path = require('path');
let root = process.cwd();

if(process.env.NODE_ENV === 'production') {
    module.exports = {
        outputDir: path.join(root, '../server/static/home'),
        indexPath: path.join(root, '../server/views/home.html'),
        publicPath: '/static/home'

    }
}else {
    // 开发环境
    // module.exports {

    // }
    let proxyObj = {
        target: 'http://localhost:3000',
    }
   module.exports = {
        devServer: {
            port: 8999, //端口号配置
            // open: true, //自动打开浏览器
			proxy: {
				'/home': proxyObj,
				'/lol': proxyObj,
				'/wangzhe': proxyObj,
				'/dnf': proxyObj,
			}
		}
   }
}